#include <iostream>
#include <vector>
#include <unordered_map>

using namespace std;

int main()
{
    unordered_map<double, vector<pair<int, int>>>mp;
    int n, x, y;
    cin >> n;
    while (n--)
    {
        cin >> x >> y;
        mp[x * 1.0 / y].push_back({x, y});
    }

    for (auto& [f, s] : mp)
    {
        if (f == 0.0)
            continue;
    }
    return 0;
}
